<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>知识 - 她与月亮的约定</title>
    <!-- Tailwind CSS -->
    <script src="https://cdn.tailwindcss.com"></script>
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#A06CD5',
                        'primary-light': '#F0EAF6',
                        secondary: '#6CD5A0',
                        'text-primary': '#1A0D28',
                        'text-secondary': '#5A5165',
                        'text-tertiary': '#9D96A5',
                        'bg-page': '#F7F5F9',
                        'border-color': '#E8E2EE',
                    }
                }
            }
        }
    </script>
    <style>
        body {
            font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
            background-color: #F7F5F9;
            color: #1A0D28;
            height: 100vh;
            display: flex;
            flex-direction: column;
        }
        
        .tab-item {
            position: relative;
            transition: all 0.2s ease;
        }
        
        .tab-item.active {
            color: #A06CD5;
            font-weight: 500;
        }
        
        .tab-item.active::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: #A06CD5;
        }
        
        .bottom-nav {
            box-shadow: 0 -1px 10px rgba(0,0,0,0.05);
        }
    </style>
</head>
<body>
    <!-- 状态栏 -->
    <div class="flex justify-between items-center px-5 py-3 bg-white border-b border-border-color">
        <span class="text-lg font-medium text-text-primary">健康知识</span>
        <div class="flex items-center space-x-2">
            <svg class="w-5 h-5 text-text-secondary" fill="currentColor" viewBox="0 0 20 20">
                <path fill-rule="evenodd" d="M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z" clip-rule="evenodd"></path>
            </svg>
        </div>
    </div>

    <!-- 分类标签栏 -->
    <div class="px-5 bg-white">
        <div class="flex space-x-6 py-3 overflow-x-auto scrollbar-hide">
            <div class="tab-item active whitespace-nowrap cursor-pointer">为你推荐</div>
            <div class="tab-item text-text-tertiary whitespace-nowrap cursor-pointer">饮食健康</div>
            <div class="tab-item text-text-tertiary whitespace-nowrap cursor-pointer">运动塑形</div>
            <div class="tab-item text-text-tertiary whitespace-nowrap cursor-pointer">心理关怀</div>
            <div class="tab-item text-text-tertiary whitespace-nowrap cursor-pointer">科普知识</div>
        </div>
    </div>

    <!-- 主要内容区 -->
    <div class="flex-1 overflow-auto px-4 pb-20">
        <!-- 文章卡片 -->
        <div class="bg-white rounded-2xl p-4 mt-4 shadow-sm flex">
            <img src="https://images.unsplash.com/photo-1544367567-0f2fcb009e0b?w=100&h=100&fit=crop" alt="瑜伽" class="w-20 h-20 rounded-xl object-cover">
            <div class="ml-4 flex-1">
                <h4 class="text-base font-medium mb-2">经期可以做的舒缓瑜伽</h4>
                <p class="text-xs text-text-secondary">几个简单动作，有效缓解腹部不适。</p>
                <div class="flex justify-between items-center mt-2">
                    <div class="flex items-center">
                        <span class="text-xs text-text-tertiary">2025-06-28</span>
                    </div>
                    <div class="flex items-center space-x-3">
                        <span class="flex items-center text-xs text-text-tertiary">
                            <svg class="w-3 h-3 mr-1" fill="currentColor" viewBox="0 0 20 20">
                                <path d="M10 12a2 2 0 100-4 2 2 0 000 4z"></path>
                                <path fill-rule="evenodd" d="M.458 10C1.732 5.943 5.522 3 10 3s8.268 2.943 9.542 7c-1.274 4.057-5.064 7-9.542 7S1.732 14.057.458 10zM14 10a4 4 0 11-8 0 4 4 0 018 0z" clip-rule="evenodd"></path>
                            </svg>
                            2.3k
                        </span>
                        <span class="flex items-center text-xs text-text-tertiary">
                            <svg class="w-3 h-3 mr-1" fill="currentColor" viewBox="0 0 20 20">
                                <path d="M2 10.5a1.5 1.5 0 113 0v6a1.5 1.5 0 01-3 0v-6zM6 10.333v5.43a2 2 0 001.106 1.79l.05.025A4 4 0 008.943 18h5.416a2 2 0 001.962-1.608l1.2-6A2 2 0 0015.56 8H12V4a2 2 0 00-2-2 1 1 0 00-1 1v.667a4 4 0 01-.8 2.4L6.8 7.933a4 4 0 00-.8 2.4z"></path>
                            </svg>
                            128
                        </span>
                    </div>
                </div>
            </div>
        </div>

        <div class="bg-white rounded-2xl p-4 mt-4 shadow-sm flex">
            <img src="https://images.unsplash.com/photo-1506126613408-444548763556?w=100&h=100&fit=crop" alt="食物" class="w-20 h-20 rounded-xl object-cover">
            <div class="ml-4 flex-1">
                <h4 class="text-base font-medium mb-2">生理期吃什么？补铁食物清单</h4>
                <p class="text-xs text-text-secondary">菠菜、红肉、豆制品...这样吃恢复元气。</p>
                <div class="flex justify-between items-center mt-2">
                    <div class="flex items-center">
                        <span class="text-xs text-text-tertiary">2025-07-05</span>
                    </div>
                    <div class="flex items-center space-x-3">
                        <span class="flex items-center text-xs text-text-tertiary">
                            <svg class="w-3 h-3 mr-1" fill="currentColor" viewBox="0 0 20 20">
                                <path d="M10 12a2 2 0 100-4 2 2 0 000 4z"></path>
                                <path fill-rule="evenodd" d="M.458 10C1.732 5.943 5.522 3 10 3s8.268 2.943 9.542 7c-1.274 4.057-5.064 7-9.542 7S1.732 14.057.458 10zM14 10a4 4 0 11-8 0 4 4 0 018 0z" clip-rule="evenodd"></path>
                            </svg>
                            3.1k
                        </span>
                        <span class="flex items-center text-xs text-text-tertiary">
                            <svg class="w-3 h-3 mr-1" fill="currentColor" viewBox="0 0 20 20">
                                <path d="M2 10.5a1.5 1.5 0 113 0v6a1.5 1.5 0 01-3 0v-6zM6 10.333v5.43a2 2 0 001.106 1.79l.05.025A4 4 0 008.943 18h5.416a2 2 0 001.962-1.608l1.2-6A2 2 0 0015.56 8H12V4a2 2 0 00-2-2 1 1 0 00-1 1v.667a4 4 0 01-.8 2.4L6.8 7.933a4 4 0 00-.8 2.4z"></path>
                            </svg>
                            215
                        </span>
                    </div>
                </div>
            </div>
        </div>

        <div class="bg-white rounded-2xl p-4 mt-4 shadow-sm flex">
            <img src="https://images.unsplash.com/photo-1571019613454-1cb2f99b2d8e?w=100&h=100&fit=crop" alt="睡眠" class="w-20 h-20 rounded-xl object-cover">
            <div class="ml-4 flex-1">
                <h4 class="text-base font-medium mb-2">改善经期失眠的5个小技巧</h4>
                <p class="text-xs text-text-secondary">从调整枕头到一杯热牛奶，帮你安然入睡。</p>
                <div class="flex justify-between items-center mt-2">
                    <div class="flex items-center">
                        <span class="text-xs text-text-tertiary">2025-07-10</span>
                    </div>
                    <div class="flex items-center space-x-3">
                        <span class="flex items-center text-xs text-text-tertiary">
                            <svg class="w-3 h-3 mr-1" fill="currentColor" viewBox="0 0 20 20">
                                <path d="M10 12a2 2 0 100-4 2 2 0 000 4z"></path>
                                <path fill-rule="evenodd" d="M.458 10C1.732 5.943 5.522 3 10 3s8.268 2.943 9.542 7c-1.274 4.057-5.064 7-9.542 7S1.732 14.057.458 10zM14 10a4 4 0 11-8 0 4 4 0 018 0z" clip-rule="evenodd"></path>
                            </svg>
                            1.8k
                        </span>
                        <span class="flex items-center text-xs text-text-tertiary">
                            <svg class="w-3 h-3 mr-1" fill="currentColor" viewBox="0 0 20 20">
                                <path d="M2 10.5a1.5 1.5 0 113 0v6a1.5 1.5 0 01-3 0v-6zM6 10.333v5.43a2 2 0 001.106 1.79l.05.025A4 4 0 008.943 18h5.416a2 2 0 001.962-1.608l1.2-6A2 2 0 0015.56 8H12V4a2 2 0 00-2-2 1 1 0 00-1 1v.667a4 4 0 01-.8 2.4L6.8 7.933a4 4 0 00-.8 2.4z"></path>
                            </svg>
                            156
                        </span>
                    </div>
                </div>
            </div>
        </div>

        <div class="bg-white rounded-2xl p-4 mt-4 shadow-sm flex">
            <img src="https://images.unsplash.com/photo-1493225457124-a3eb161ffa5f?w=100&h=100&fit=crop" alt="冥想" class="w-20 h-20 rounded-xl object-cover">
            <div class="ml-4 flex-1">
                <h4 class="text-base font-medium mb-2">月经期情绪波动怎么办？</h4>
                <p class="text-xs text-text-secondary">三分钟冥想练习，帮你稳定情绪，找回平静。</p>
                <div class="flex justify-between items-center mt-2">
                    <div class="flex items-center">
                        <span class="text-xs text-text-tertiary">2025-07-12</span>
                    </div>
                    <div class="flex items-center space-x-3">
                        <span class="flex items-center text-xs text-text-tertiary">
                            <svg class="w-3 h-3 mr-1" fill="currentColor" viewBox="0 0 20 20">
                                <path d="M10 12a2 2 0 100-4 2 2 0 000 4z"></path>
                                <path fill-rule="evenodd" d="M.458 10C1.732 5.943 5.522 3 10 3s8.268 2.943 9.542 7c-1.274 4.057-5.064 7-9.542 7S1.732 14.057.458 10zM14 10a4 4 0 11-8 0 4 4 0 018 0z" clip-rule="evenodd"></path>
                            </svg>
                            2.5k
                        </span>
                        <span class="flex items-center text-xs text-text-tertiary">
                            <svg class="w-3 h-3 mr-1" fill="currentColor" viewBox="0 0 20 20">
                                <path d="M2 10.5a1.5 1.5 0 113 0v6a1.5 1.5 0 01-3 0v-6zM6 10.333v5.43a2 2 0 001.106 1.79l.05.025A4 4 0 008.943 18h5.416a2 2 0 001.962-1.608l1.2-6A2 2 0 0015.56 8H12V4a2 2 0 00-2-2 1 1 0 00-1 1v.667a4 4 0 01-.8 2.4L6.8 7.933a4 4 0 00-.8 2.4z"></path>
                            </svg>
                            189
                        </span>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- 底部导航栏 -->
    <div class="bottom-nav fixed bottom-0 left-0 right-0 bg-white border-t border-border-color py-2 px-6">
        <div class="flex justify-around">
            <a href="#" class="flex flex-col items-center text-text-tertiary">
                <svg class="w-6 h-6" fill="currentColor" viewBox="0 0 20 20">
                    <path d="M10.707 2.293a1 1 0 00-1.414 0l-7 7a1 1 0 001.414 1.414L4 10.414V17a1 1 0 001 1h2a1 1 0 001-1v-2a1 1 0 011-1h2a1 1 0 011 1v2a1 1 0 001 1h2a1 1 0 001-1v-6.586l.293.293a1 1 0 001.414-1.414l-7-7z"></path>
                </svg>
                <span class="text-xs mt-1">首页</span>
            </a>
            <a href="#" class="flex flex-col items-center text-text-tertiary">
                <svg class="w-6 h-6" fill="currentColor" viewBox="0 0 20 20">
                    <path d="M13.586 3.586a2 2 0 112.828 2.828l-.793.793-2.828-2.828.793-.793zM11.379 5.793L3 14.172V17h2.828l8.38-8.379-2.83-2.828z"></path>
                </svg>
                <span class="text-xs mt-1">记录</span>
            </a>
            <a href="#" class="flex flex-col items-center text-primary">
                <svg class="w-6 h-6" fill="currentColor" viewBox="0 0 20 20">
                    <path d="M9 4.804A7.968 7.968 0 005.5 4c-1.255 0-2.443.29-3.5.804v10A7.969 7.969 0 015.5 14c1.669 0 3.218.51 4.5 1.385A7.962 7.962 0 0114.5 14c1.255 0 2.443.29 3.5.804v-10A7.968 7.968 0 0014.5 4c-1.255 0-2.443.29-3.5.804V12a1 1 0 11-2 0V4.804z"></path>
                </svg>
                <span class="text-xs mt-1">知识</span>
            </a>
            <a href="#" class="flex flex-col items-center text-text-tertiary">
                <svg class="w-6 h-6" fill="currentColor" viewBox="0 0 20 20">
                    <path fill-rule="evenodd" d="M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z" clip-rule="evenodd"></path>
                </svg>
                <span class="text-xs mt-1">我的</span>
            </a>
        </div>
    </div>
</body>
</html> 